/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2021-12-23 15:18:14
 * @LastEditTime: 2021-12-23 15:56:15
 */
import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'
import dateOpt from '@/biz/option/date.js'
import Opt from '@/components/dt/info/Opt.js'

let _this = null

class Column extends Opt {
  constructor(vm) {
    super()
    _this = vm
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
    {
      title: '日期',
      field: 'date',
      align: 'center',
    },
    {
      title: '需发数',
      field: 'needSend',
      align: 'center',
    },
    {
      title: '未发数',
      field: 'noSend',
      align: 'center',
    },
    {
      title: '发送率',
      field: 'sendRate',
      align: 'center',
    },
    {
      title: '阅读数',
      field: 'hasRead',
      align: 'center',
    },
    {
      title: '平均阅读时长',
      field: 'averageReadingTime',
      align: 'center',
    },
    {
      title: '转发客户数',
      field: 'forwardCustomerNum',
      align: 'center',
    },
    {
      title: '转发次数',
      field: 'forwardNum',
      align: 'center',
    }, ]
  }

}

export default Column